package com.zhangwei.yueshijia.view.fragment;


import android.support.v4.app.Fragment;

import com.zhangwei.yueshijia.R;
import com.zhangwei.yueshijia.api.ExceptionHandle;
import com.zhangwei.yueshijia.base.MvpFragment;
import com.zhangwei.yueshijia.bean.special.Virtual;
import com.zhangwei.yueshijia.presenter.SpecialPresenter;
import com.zhangwei.yueshijia.view.impl.SpecialView;

import java.util.HashMap;
import java.util.List;


public class SpecialFragment extends MvpFragment<SpecialPresenter> implements SpecialView {


    @Override
    public SpecialPresenter initPresenter() {
        return new SpecialPresenter();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_special;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        HashMap<String, String> params = new HashMap<>();
        params.put("act", "app");
        params.put("op", "special_programa");
        params.put("client", "android");
        params.put("token", "749a036dc06ae8b3a120848995a9f306");
        params.put("key", "f5492f263ab68e5b9c85b2a26c6f820e");
        params.put("special_type", "6");
        prsenter.getspecialProgramaData(params);
    }

    @Override
    public void onSuccess(List<Virtual> data) {

    }

    @Override
    public void onShow() {

    }

    @Override
    public void onFial(ExceptionHandle.ResponeThrowable e) {

    }

    @Override
    public void onFinish() {

    }
}
